<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="button" value="按钮" onclick="fn2('liu',55)">
<script>
    function fn1() {
        alert("fn1")
    }
    fn1();
    function fn2(name,age){
        alert(name+":"+age)
    }
    fn2("司马懿",10);
    function fn3() {
        return"shishis";
    }
    let msg = fn3();
    alert(msg)

    function fn4(x,y) {
        return x*y;
    }
    let result = fn4(5,6);
    alert(result);

    let fn5 = function (name,age) {
        alert(name+":"+age);
    }
    fn5("zhu",33);

    let fn6 = new Function("name","age","alert(name+':'+age)");
    fn6("di",44);

</script>

</body>
</html>